package sto.orz.json;

public class JSONMessage implements JSONAdapter {
	private String message;

	public JSONMessage(String message) {
		this.message = message;
	}

	public String toJson() {
		// TODO 转义message中的特殊字符
		message = message.replace("\"", "\\\"");
		return "{message:\"" + message + "\"}";
	}

}
